package com.yunti.springboot.bo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author luojianguo
 */
@Data
public class UserBO {
    private static final long serialVersionUID = 984538855863527077L;
    /**  | 表字段 id */
    private Integer id;


    /**  | 表字段 username */
    private String username;

    @JsonIgnore
    /**  | 表字段 password */
    private String password;

    /**  | 表字段 phone */
    private String phone;

    /**  | 表字段 nickname */
    private String nickname;

    /**  | 表字段 school_id */
    private Integer schoolId;

    /**  | 表字段 parent_id */
    private Integer parentId;

    /**  | 表字段 enable */
    private Boolean enable;

    /**  | 表字段 create_time */
    private LocalDateTime createTime;

    /**  | 表字段 updateT_time */
    private LocalDateTime updatetTime;

    private String schoolName;

    /**
     * 权限值
     */
    @JsonProperty("rank")
    private List<String> rank;


    private Integer level;


    private String token;

    //用户1，设备2
    private Integer type;
}
